/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dudinzpos;

import javax.swing.JFrame;
import koneksi.koneksi;

/**
 *
 * @author UserXP
 */
public class Main {



    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        try{
            koneksi config = new koneksi();
            config.BuatKoneksiDB();
            if(config.blnIsConnected==true){
                mainView mv = new mainView();
                mv.setExtendedState(JFrame.MAXIMIZED_BOTH);
                mv.setVisible(true);

            }else{
                koneksi kon = new koneksi();
                kon.setVisible(true);
            }

        }catch(Exception e){

        }
    }





}
